package reit.ass3;


/**
  * The Class Namable.
  */
 class Namable implements NamableInterface {
	
	/** The  name. */
	protected String fName;
	
	/**
	 * Instantiates a new namable.
	 *
	 * @param name the name
	 */
	public Namable(final String name){
		fName=name;	
	}
	
	/**
	 * Instantiates a new namable.
	 *
	 * @param other the other
	 */
	public Namable(final Namable other){
		this.fName = other.fName;
	}
	
	/* (non-Javadoc)
	 * @see ass3.NamableInterface#getName()
	 */
	@Override
	public String getName() {
		return fName;
	}
}
